let arr = [];
function sum(x, y) {
  return x + y;
}
console.time("interval");
for (let i = 0; i < 10000; i++) {
  arr.push(sum(i, i));
}
console.timeEnd("interval");
console.log(arr);

